package com.aier.user.entity;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

import com.aier.common.common.Constant;

/**
 * 密友实体
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "friend", catalog = "abc")
public class Friend implements java.io.Serializable {

    // 标识
    private Long frid;
    // 用户id
    private Long uid;
    // 被加人的id
    private Long auid;
    // 状态(1密友2等待确认中)
    private Short state;
    // 备注名
    private String remark;
    // 时间
    private Timestamp cdate;
    
    // 昵称
    private String nickname;
    // 头像
    private String headimg;
    // 分组名
    private String fgName;
    // 个人简介
    private String desinfo;
    // 关注类型（已关注，互相关注）
    private String followStr;
    // 状态类型(密友,等待确认中)
    private String stateStr;

    // Constructors

    /** default constructor */
    public Friend() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "frid", unique = true, nullable = false)
    public Long getFrid() {
        return this.frid;
    }

    public void setFrid(Long frid) {
        this.frid = frid;
    }
    @Column(name = "uid", nullable = false, length = Constant.num_20)
    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }
    @Column(name = "auid", nullable = false, length = Constant.num_20)
    public Long getAuid() {
        return auid;
    }

    public void setAuid(Long auid) {
        this.auid = auid;
    }
    @Column(name = "state")
    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }
    @Column(name = "cdate")
    public Timestamp getCdate() {
        return cdate;
    }

    public void setCdate(Timestamp cdate) {
        this.cdate = cdate;
    }
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getHeadimg() {
        return headimg;
    }

    public void setHeadimg(String headimg) {
        this.headimg = headimg;
    }

    public String getFgName() {
        return fgName;
    }

    public void setFgName(String fgName) {
        this.fgName = fgName;
    }

    public String getDesinfo() {
        return desinfo;
    }

    public void setDesinfo(String desinfo) {
        this.desinfo = desinfo;
    }

    public String getFollowStr() {
        return followStr;
    }

    public void setFollowStr(String followStr) {
        this.followStr = followStr;
    }

    public String getStateStr() {
        return stateStr;
    }

    public void setStateStr(String stateStr) {
        this.stateStr = stateStr;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

}